package com.ruoyi.file.service;

import com.qiniu.common.QiniuException;
import com.qiniu.storage.model.FileInfo;
import com.ruoyi.common.utils.file.QiniuImageUploader;
import org.springframework.web.multipart.MultipartFile;

public interface IFileService {

    String getUpToken(String bucket, long expireSeconds);

    String getUrl(String key, String type, long expireSeconds);

    FileInfo getFileInfo(String key, String bucket) throws QiniuException;

    void move(String fromBucket, String toBucket, String fromKey, String toKey) throws QiniuException;

    void copy(String fromBucket, String toBucket, String fromKey, String toKey) throws QiniuException;

    void delete(String key, String bucket);

}
